//--------------------------------------------------------------------
//     Author:Howe
//     Date: 2021-04-13 21:41:46 
//     Description:对此文件的更改可能会导致不正确的行为，并且如果重新生成代码，这些更改将会丢失。
//--------------------------------------------------------------------
using System;
using System.Threading.Tasks;
using Kylin.Wiki.Core; 
using Kylin.Wiki.Services;
using Kylin.Wiki.Model.Entity;
using Kylin.Wiki.Model.Api;
using Kylin.Wiki.Model.Dto;
using System.Collections.Generic;
using Kylin.Wiki.Model.View;

namespace Kylin.Wiki.IService
{	
    /// <summary>
    /// IDeptServices
    /// </summary>	
    public interface IDeptService : IServices<Dept>
    {
        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="deptDTO"></param>
        /// <returns></returns>
        ApiPageResult<List<DeptVM>> GetListByPage(DeptDTO deptDTO);

        /// <summary>
        /// 创建部门
        /// </summary>
        /// <param name="dept"></param>
        /// <returns></returns>
        ApiResult<bool> Create(Dept dept);

        /// <summary>
        /// 更新部门
        /// </summary>
        /// <param name="dept"></param>
        /// <returns></returns>
        ApiResult<bool> Update(Dept dept);

        /// <summary>
        /// 删除部门
        /// </summary>
        /// <param name="dept"></param>
        /// <returns></returns>
        ApiResult<bool> Delete(Dept dept); 
    }
  
} 
	